package com.itheima.service;

import com.itheima.common.Com.Dish;
import com.itheima.common.pojo.PageInfo;
import com.itheima.common.vo.DishDto;
import com.itheima.common.vo.DishVo;
import com.itheima.common.pojo.DishVo2;

import java.util.List;


public interface DishService {
    List<DishVo> getList(String categoryId);

    Boolean save(DishVo dishVo);

    Boolean update(DishDto dishDto);

    Boolean delete(String ids);

    void discontinued(Integer status,String id);

    PageInfo<Dish> getpage(String name, Integer page, Integer pageSize, Integer type);

   DishVo getById(String id);


    List<DishVo2> getAll(String categoryId, Integer status, Integer page, Integer pageSize);
}
